export default (function name(files) {
  // console.log(files);
  let result = {};
  for (const i in files) {
    let key = (i || "").replace("./", "").replace(".js", "");
    let file = files[i];
    result[key] = file;
  }
  console.log(result);
  return result;
})(import.meta.glob("./*.js", { eager: true }));
